{% extends "_layout.html" %}
{% import "component/pagination.njk" as pagination %}
{% import "component/table.njk" as table %}
{% import "component/search.njk" as search %}

{# 样式代码 #}
{% block style %}

{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="wrapper wrapper-content">
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">

            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-10">
                        <form class="page-search-form">
                        </form>
                    </div>
                    <div class="col-sm-2">
                        <div class="ibox-tools">
                            <a href="/order/config/edit" class="btn btn-primary btn-xm">添加订单配送设置</a>
                        </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="table-responsive">
                   <form id="table-form">
                       {%
                           set columns = [{
                               title: '订购时间',
                               key: 'bookingDate'
                           },{
                               title: '开始配送时间',
                               key: 'startTime'
                           },{
                               title: '结束配送时间',
                               key: 'endTime'
                           },{
                               title: '时间间隔 时间格式：分钟',
                               key: 'range'
                           },{
                               title: '延迟配送时间 时间格式：分钟',
                               key: 'delayTime'
                           },{
                               title: '配送费',
                               key: 'deliverPrice'
                           },{
                               title: '餐具费',
                               key: 'tablewarePrice'
                           },{
                               title: '创建时间',
                               key: 'createTime'
                           },{
                               title: '操作',
                               type: 'operate',
                                url:'/order/config',
                                btns: [
                                    'delete', 'edit'
                                ]
                           }]
                       %}
                       {{ table.base(data.list, columns) }}
                   </form>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="btn-region clearfix">
                    <div class="pull-left">
                        <button href="" id="batch-del-btn" class="btn btn-danger btn-sm js-batch" data-url="/order/config/delete" data-confirm="确定删除选中的订单配送设置吗?" data-original-title="" title="">批量删除</button>
                    </div>
                    <div class="pull-right">
                        {{ pagination.pagination(data, params, '/order/config') }}
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
</div>
{% endblock %}

{#js代码#}
{% block js %}
<script>


</script>

{% endblock %}
